package com.java.generics;

import java.io.Serializable;
import java.util.*;

public class Client{
	public static void main(String[] args){
		Pair<? super List> pair = new Pair<Object>();
		pair.setFirst(new ArrayList());
		pair.getFirst();
		Calendar c = null;
	}

	public static <T extends Comparable & Serializable> T get(T t){
		//T[] ta = new T[2];
		return t;
	}

	public void add(){
		Pair<? extends List> pair = null;
		pair = new Pair<List>();
		pair = new Pair<ArrayList>();
		pair = new Pair<LinkedList>();
		pair.setFirst(null);

		Pair<? super List> pair2 = null;
		pair2 = new Pair<List>();
		pair2 = new Pair<Collection>();
		pair2 = new Pair<Object>();
		pair2.setFirst(null);
	}

}
